<div class="qf-goods-list <{$setting.stylename}>">
	<{if $setting.title}><div class="hd"><h3><{$setting.title}></h3></div><{/if}>
    <ul class="p-list clearfix">
        <{assign var="do" value="1"}>
        <{foreach from=$data.goodsRows item=row key=key name=goodsrow}>
        
            <{capture name=goodstags}>
            <!--商品标签-->
            <{if $row.tags && $setting.showgoodstag=='on'}>
                <div class="goods-tags">
                <{if $setting.showgoodstagtype =='img'}>
                <{foreach from=$row.tags item=item key=key name=tags}>
                    <{if $item.params.tag_showOnIndex =='on' && $item.params.tag_image}>
                        <span style="<{if $item.params.tag_opacity}>opacity:<{$item.params.tag_opacity/100}>;filter:alpha(opacity=<{$item.params.tag_opacity}>);<{/if}>" class="img-tag-<{$item.params.pic_loc}>"><img src="<{$data.theme_dir}>/images/i/transparent.gif}>" data-src="<{$item.params.tag_image|storager}>" /></span>
                     <{/if}>
                 <{/foreach}>
            <{else}>
                <{foreach from=$row.tags item=item key=key name=tags}>
                    <{if $smarty.foreach.tags.iteration <= $setting.maxtags|default:'2' && $item.tag_name && $item.params.tag_showOnIndex =='on'}>
                        <span class="text-tag-<{$item.params.pic_loc}>" style="<{if $item.tag_fgcolor}>background-color:<{$item.tag_bgcolor}>;<{/if}><{if $item.tag_fgcolor}>color:<{$item.tag_fgcolor}>;<{/if}><{if $item.params.tag_opacity}>opacity:<{$item.params.tag_opacity/100}>;filter:alpha(opacity=<{$item.params.tag_opacity}>)<{/if}>"><{$item.tag_name}></span>
                     <{/if}>
                 <{/foreach}>
                <{/if}>
                </div>
           <{/if}>
           <{/capture}>
           
           <{capture name=goodsImg}>
           <!--商品图片-->
           	<a href="<{$row.goodsLink}>" title="<{$row.goodsName}>" target="_blank" class="apic"><img alt="<{$row.goodsName|escape:html}>" src="<{$data.theme_dir}>/images/i/transparent.gif}>" data-src="<{$row.goodsPicM}>"<{if $setting.resize == 'on'}> width="<{$setting.width}>" height="<{$setting.height}>"<{else}> data-img-zoom="true"<{/if}> /></a>
           <{/capture}>	
           	
           <{capture name=goodsname}>
               <!--商品标题-->
               <{if $setting.showgoodsName != "off"}>
                <h3 class="goods-name">
                    <a href="<{$row.goodsLink}>" title="<{$row.goodsName|escape:html}>" target="_blank"><{$row.goodsName|cut:$setting.maxlength}></a></h3>
                <{/if}>
           <{/capture}>
           
            <{capture name=goodsIntro}>
                <!--商品简介-->
                <{if $setting.showgoodsIntro=='on' && $row.goodsIntro}>
                    <p class="goods-desc"><{$row.goodsIntro|cut:$setting.maxlength1}></p>
                <{/if}>
            <{/capture}>
            
            
            <{capture name=goodsinfo}>
				<{if $setting.showbuycount =='on'}>
                	<div class="goods-buycount"><{if $setting.buycount==1}><span><{$setting.btitle}></span><strong><{$row.goodsBuyCount|default:'0'}></strong><{else}><span><{$setting.btitle}></span><strong><{$row.goodsBuyCountWeek|default:'0'}></strong><{/if}></div>
               <{/if}>
               <{if $setting.show_star =='on'}>
               		<div class="goods-comment"><{if $row.star.comments_count > 0}><em class="stars stars-<{$row.star.avg_num*10}>"><span class="below"><i class="icon star">&#x2f;</i><i class="icon star">&#x2f;</i><i class="icon star">&#x2f;</i><i class="icon star">&#x2f;</i><i class="icon star">&#x2f;</i></span><span class="above"><i class="icon star">&#x2e;</i><i class="icon star">&#x2e;</i><i class="icon star">&#x2e;</i><i class="icon star">&#x2e;</i><i class="icon star">&#x2e;</i></span></em><a href="<{$row.goodsLink}>#product_comment"><b><{$row.star.comments_count}></b><{t}>条评论<{/t}></a><{else}><{t}>暂无评论<{/t}><{/if}></div>
                <{/if}>
            	<{if $setting.showgoodsSalePrice == 'on' || $setting.showgoodsMarketPrice == 'on'}>
                	<div class="goods-price">
                    	<{if $setting.showgoodsMarketPrice == 'on'}>
                        	<del class="price"><{$setting.MarketPricetxt}><em><{$row.goodsMarketPrice|cur}></em></del>
                        <{/if}>
                        <{if $setting.showgoodsSalePrice != 'off'}>
                             <ins class="price"><{$setting.salePricetxt}><em><{$row.goodsSalePrice|cur}></em></ins>
                        <{/if}>
               		</div>
                <{/if}>
                <{if $setting.showgoodsbtn == 'on'}>
                <div class="goods-buy"><a target="_blank" href="<{$row.goodsLink}>" class="btn-buynow"><i class="icon icon-buynow">&#x3e;</i>购买</a></div>
                <{/if}>
            <{/capture}>
            
            <!--四种图文排列方式 0-图在上，1-图在下，2-图在左，3-图在右--->
            <li class="goods-item fore<{$do}><{if $do % $setting.column == 0}> last<{/if}>">
              <div class="goods-inner">
              		<{if $setting.imgside =='1'}>
                    	<div class="goods-info"><{$smarty.capture.goodsIntro}><{$smarty.capture.goodsname}><{$smarty.capture.goodsinfo}></div>
                        <{if $setting.showgoodsImg!="off"}><div class="goods-pic"><{$smarty.capture.goodsImg}><{$smarty.capture.goodstags}></div><{/if}>
                    <{elseif $setting.imgside =='2'}>
                    	<{if $setting.showgoodsImg!="off"}><div class="goods-pic l"><{$smarty.capture.goodsImg}><{$smarty.capture.goodstags}></div><{/if}>
                        <div class="goods-info"><{$smarty.capture.goodsIntro}><{$smarty.capture.goodsname}><{$smarty.capture.goodsinfo}></div>
                    <{elseif $setting.imgside =='3'}>
                    	<{if $setting.showgoodsImg!="off"}><div class="goods-pic r"><{$smarty.capture.goodsImg}><{$smarty.capture.goodstags}></div><{/if}>
                        <div class="goods-info"><{$smarty.capture.goodsIntro}><{$smarty.capture.goodsname}><{$smarty.capture.goodsinfo}></div>
                    <{else}>
                    	<!--默认,即图在上-->
                    	<{if $setting.showgoodsImg!="off"}><div class="goods-pic"><{$smarty.capture.goodsImg}><{$smarty.capture.goodstags}></div><{/if}>
                        <div class="goods-info"><{$smarty.capture.goodsIntro}><{$smarty.capture.goodsname}><{$smarty.capture.goodsinfo}></div>
                    <{/if}>
               </div>
            </li>
            <{assign var="do" value=$do+1}>
       <{/foreach}>
  </ul>
</div>